package cup.common.common;

/**
 * @author : ruoyu
 * @date : 2022/7/12
 */
public interface Constant {

	Integer STATUS_YES = 1;

	Integer STATUS_NO = 0;

	/**
	 * 已删除
	 */
	Integer DELETE_YES = 1;

	/**
	 * 未删除
	 */
	Integer DELETE_NO = 0;

	/**
	 * 大于
	 */
	String GreaterThan = "&gt;";

	/**
	 * 大于等于
	 */
	String GreaterThanAndEquals = "&gt;=";

	/**
	 * 小于
	 */
	String LessThan = "&lt;";

	/**
	 * 小于等于
	 */
	String LessThanAndEquals = "&lt;=";

	/**
	 * 客户端id
	 */
	String ClientId = "${clientId}";

	/**
	 * 安全key
	 */
	String SecretKey = "${SecretKey}";

	/**
	 * 获取的code
	 */
	String CODE = "${CODE}";

	/**
	 * 回调地址
	 */
	String RedirectUri = "${RedirectUri}";

	/**
	 * 调用时头的参数
	 */
	String loginIdHeaderKey = "Authorization";

	/**
	 * 获取accessToken
	 */
	String GetAccessTokenUrl = "http://172.30.34.173:9005/CQJGPT/rest/oauth2/token?client_id=" + ClientId +
		"&client_secret=" + SecretKey +
		"&grant_type=authorization_code" +
		"&redirect_uri=" + RedirectUri +
		"&code=" + CODE;

	/**
	 * 获取loginId
	 */
	String GetLoginIdUrl = "http://172.30.34.173:9005/CQJGPT/rest/oauth2/loginid";

	/**
	 * 获取最终授权的AccessToken
	 */
	String GetSecretAccessTokenUrl = "http://172.30.34.173:9005/CQJGPT/rest/oauth2/token?client_id=" + ClientId +
		"&client_secret=" + SecretKey +
		"&grant_type=client_credentials" +
		"&redirect_uri=" + RedirectUri +
		"&code=" + CODE;

	/**
	 * 获取用户信息
	 */
	String GetUserInfoUrl = "http://172.30.34.173:9005/CQJGPT/rest/orga/getCurrentLoginUser";


	interface T0PushStatic{

		/**
		 * 新增
		 */
		String operationAdd="I";

		/**
		 * 更新
		 */
		String operationUpdate="U";

		/**
		 * 删除
		 */
		String operationDelete="D";

	}
}
